goog.provide('tipfy.editor.plugins.Strong');

goog.require('tipfy.editor.plugins.SimpleTag');
goog.require('goog.dom.TagName');
goog.require('goog.functions');
goog.require('goog.ui.editor.DefaultToolbar');


/**
 * Plugin to insert 'Hello World!' into an editable field.
 * @constructor
 * @extends {goog.editor.Plugin}
 */
tipfy.editor.plugins.Strong = function() {
  goog.base(this, tipfy.editor.plugins.Strong.COMMAND, goog.dom.TagName.STRONG);
};
goog.inherits(tipfy.editor.plugins.Strong, tipfy.editor.plugins.SimpleTag);


/**
 * Commands implemented by this plugin.
 * @enum {string}
 */
tipfy.editor.plugins.Strong.COMMAND = 'CustomStrong';


/** @inheritDoc */
tipfy.editor.plugins.Strong.prototype.getTrogClassId =
    goog.functions.constant(tipfy.editor.plugins.Strong.COMMAND);


tipfy.editor.plugins.Strong.ButtonDescriptor = {
  command: tipfy.editor.plugins.Strong.COMMAND,
  tooltip: goog.ui.editor.DefaultToolbar.MSG_BOLD_TITLE,
  classes: goog.getCssName('tr-icon') + ' ' + goog.getCssName('tr-bold'),
  queryable: true
};
